<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="s"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<link href="<c:url value="/resources/css/common.css" />" rel="stylesheet">
<s:admin pageName="visit">
<jsp:attribute name="headPart">
	<link href="<c:url value="/resources/bootstrap/css/bootstrap-select.min.css" />" rel="stylesheet">
	<script src="<c:url value="/resources/bootstrap/js/bootstrap-select.min.js" />"></script>
</jsp:attribute>
<jsp:body>
<div class="row main">
	<h4 class="page-header">Visit Records
		<c:if test="${not empty month}">
			in ${month}
		</c:if>
	</h4>
		
	<div class="col-sm-12">
		<div class="col-sm-2">
			Total Visits: <font color="red">${page.getTotalElements()}</font>
		</div>
		<table class="table table-striped table-hover table-condensed">
       		<tr class="active">
    			<th class="col-md-2">License Plate</th>
    			<th class="col-md-2">Access Time</th>
    			<th class="col-md-2">Response Time</th>
    			<th class="col-md-8">Access Result</th>
       		</tr>
        	<c:forEach items="${page.getContent()}" var="item">
        		<tr>
        			<td>${item.request}</td>
        			<td>${item.accessAt}</td>
        			<td>${item.responseAt}</td>
        			<td>${item.response}</td>
	    		</tr>
        	</c:forEach>
        </table>
        <div class="text-right">
        	<s:paging page="${page}"></s:paging>
        </div>
	</div>
</div>
</jsp:body>
</s:admin>
